FROM registry.cn-zhangjiakou.aliyuncs.com/tjpn4_platform_prod/openjdk:8-jdk-alpine
MAINTAINER mark@tjpn4.com
COPY skywalking-agent /usr/local/agent/
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
#
#RUN apk add -U tzdata \
#    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
#    && echo "Asia/Shanghai" > /etc/timezone \
#    && apk add --no-cache bash bash-doc bash-completion \
#    && apk del tzdata \
#    && rm -rf /var/cache/apk/*
RUN mkdir -p /blade/desk
COPY skywalking-agent /usr/local/agent/
WORKDIR /blade/desk
EXPOSE 8105
ADD blade-service/assign-work/target/assign-work.jar ./app.jar
ENTRYPOINT ["java","-javaagent:/usr/local/agent/skywalking-agent.jar","-Dskywalking.agent.service_name=assign-work","-Dskywalking.collector.backend_service=172.16.30.52:11800","-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]